﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
namespace Model
{
    public class DataTrans:IDataTrans
    {
        public Entity Entity { get; set; }

        #region IDataTrans 成员

        public object GetPrimaryKey()
        {
           return Entity.PrimaryKey;
        }
        [XmlIgnore]
        public bool IsNull
        {
            get { return Entity == null; }
        }
        public ColumnDefine Find(object value)
        {
            return Entity.Find(value);
        }
        public void SetPrimaryKey(object key)
        {
            Entity.PrimaryKey.SetPrimaryKey(key);
        }
        #endregion
    }
}
